Release notes for the Lab Brick LSG series DLL version 1.03
7/17/2013

This release contains a DLL which has the ANSI C (__cdecl) calling convention, with undecorated function names.

Two new functions have been added:

fnLSG_GetDLLVersion() returns the version of the DLL as an integer, encoded in major.minor form where the low byte
of the integer represents the minor revision level, with values ranging from 0 to 99, and the next higher byte
represents the major revision level, with values ranging from 0 to 255.

fnLSG_GetPowerLevelAbs(DEVID deviceID) returns the absolute power level in .25db units. If the power output level of the
signal generator is set to -12 db, the function will return the value -48. Note that the original fnLSG_GetPowerLevel function
actually returns the difference between the maximum output power and the current output power level in .25 db units due to
historical reasons. (Note that in certain versions of the documentation, the description for the original function was incorrect.)

This ANSI C DLL can be used within Python applications by using ctypes:

>>> from ctypes import *
>>> vnx = cdll.vnx_fsynsth
>>> vnx.fnLSG_SetTestMode(0)
>>> print vnx.fnLSG_GetNumDevices()
1
(etc.)

